<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td height="40" colspan="2" class="sectionheading bottom-border">
			Deposit Report
		</td>
	</tr>
	<tr>
		<td height="10"></td>
	</tr>
	<tr>
		<td>
			<div align="center">
				<center>
					<table border="0" cellpadding="5" cellspacing="0" width="100%">
						<tbody>
							<tr>
								<td width="100%" colspan="2" align="center"
									class="Table-Head verdana12darkgreybold">
									Deposit Report
								</td>
							</tr>
							<tr>
								<td nowrap="nowrap" class="verdana12Greybold">
									Deposit report for the period
								</td>

								<td width="100%" class="verdana12Greybold">
									&nbsp; <s:date format="MM/dd/yyyy" name="fromDate" /> to <s:date format="MM/dd/yyyy" name="toDate" />
								</td>
							</tr>
							<tr>
								<td>
									<br>
								</td>
							</tr>
						</tbody>
					</table>
				<display:table name="depositsList" cellpadding="0" cellspacing="0" requestURI="createDepositsReport.htm" id="row" class="verdana12blacknormal" defaultsort="2" decorator="org.displaytag.decorator.TotalTableDecorator">
					<display:column title="#" headerClass="Table-Head" style="text-align: center">
						<c:out value="${row_rowNum}" />
					</display:column>
					<display:column headerClass="Table-Head" style="text-align: center" property="user.userId" title="UserID" group="1" class="navi-link" />
					<display:column headerClass="Table-Head" style="text-align: center" title="Deposit Date" autolink="true">
						<s:date name="#attr.row.depositDate" format="dd MMMM, yyyy" />
					</display:column>
					<display:column headerClass="Table-Head" style="text-align: center" property="source" title="Type" class="navi-link" />
					<display:column headerClass="Table-Head" style="text-align: right" property="amount" title="Amount" class="navi-link" format="{0,number,0.00} $" total="true" />
					<display:column headerClass="Table-Head" style="text-align: right" property="user.currentBalance" group="2" title="Current Balance" class="navi-link" />
				</display:table>

				</center>
			<p align="center">
				<a href="#" target="_blank" class="navi-link">Print</a>
			</p>
			<p align="center">
				<a href="javascript:history.go(-1)" class="navi-link">Previous Page</a>
			</p>
		</td>
	</tr>
</table>